package com.wt.hrentSystem.hrent.dao;

import com.wt.hrentSystem.common.dao.BaseDao;
import com.wt.hrentSystem.hrent.entity.HouseRenting;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface HouseRentingDao extends BaseDao<HouseRenting> {
    //通过houseId查询在租列表的数据
    int getNumByHouseId(String houseId);

    //查询某个用户正在租的房源数量
    Integer getCountByUserId(String userId);
}
